﻿@{ Layout = "../../Views/Shared/_LayoutPhone.cshtml";}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<script>
    $(document).ready(function () {
        $("#kehu1").attr("hidden", "");
        $("#kehu2").removeAttr("hidden", "");
        $("#kehu3").attr("hidden", "");
        $("#kehu4").removeAttr("hidden", "");
    })
</script>
<div class="container mt-4 main-container">
    <div class="row">
        <div class="col-sm-12 col-md-12">
            <div class="card rounded-0 border-0 mb-3" style="margin-left: -10px; margin-right: -10px;">
                <div class="card-header">
                    <div class="row">
                        <div class="col-8">
                            <h5 class="card-title mb-0">
                                我的客户
                            </h5>
                        </div>

                    </div>
                </div>
                <div class="card-body">
                    <table class="table table-bordered">
                        <thead>
                            <tr>
                                <th scope="col" style="width: 35%;text-align:center; ">客户姓名</th>
                                <th scope="col" style="text-align:center;">手机号码</th>
                            </tr>
                        </thead>
                        <tbody id="LieBiao" style="text-align:center;">
                        </tbody>
                    </table>
                    <div id="jiazai" style="text-align:center;">

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div style="margin-bottom: 50px;padding-bottom:1px"></div>
<div id="shu"></div>
<script>
    $(document).ready(function () {
        huiju();
    });
    function huiju() {
        $.ajax({
            type: "POST",
            url: "../PhoneKeHu/huiju",
            cache: false,  //禁用缓存
            data: { shu: 0 },  //传入组装的参数
            dataType: "text",
            success: function (result) {
                $("#LieBiao").html(result);
                $("#shu").val("10");
                jiazaigengduo(0);
            }
        });
    }
    function jiazaigengduo(shu) {
        $.ajax({
            type: "POST",
            url: "../PhoneKeHu/jiazaigengduo",
            cache: false,  //禁用缓存
            data: { shu: shu },  //传入组装的参数
            dataType: "text",
            success: function (result) {
                $("#jiazai").html(result);
                if (result == "数据已全部加载完毕") {

                }
            }
        });
    }
    function xiangxi(id) {
        window.location.href = "KeHuXiangXi?KeHuId=" + id + "";
    }


    function Load() {
        //alert(3);
        var shu = $("#shu").val();
        $.ajax({
            type: "POST",
            url: "../PhoneKeHu/huiju",
            cache: false,  //禁用缓存
            data: { shu: shu },  //传入组装的参数
            dataType: "text",
            success: function (result) {
                $("#LieBiao").html(result);
                shu = parseInt(shu) + 10;
                $("#shu").val(shu);
                jiazaigengduo(shu);

            }
        });
    }
</script>